import Vue from 'vue'
import Router from 'vue-router'
import type from "components/type/type.vue"
import goods from "components/goods/goods.vue"
import  lining from "components/lining/lining.vue"
Vue.use(Router);

const VueRouter = new Router({
  routes: [
    {
      path: '/',
      name: '选择类型',
      component: type
    },{
      path:'/type',
      name: '选择类型',
      component: type
    },{
      path:"/goods",
      name:"选择商品",
      component:goods
    },{
      path:"/lining",
      name:"选择面料",
      component:lining
    }
  ]
});

VueRouter.beforeEach((to, from, next) => {
  next()
});

export default VueRouter
